package com.xiaoyu.lanling.feature.coin.data

import `in`.srain.cube.util.UTUtil
import android.os.Bundle

object CoinEventLogManger {

    fun firstChargeDialogShow() {
        UTUtil.getInstance().logEvent("first_charge_dialog_show")
    }

    fun firstChargeDialogEarnFreeCoinClick() {
        UTUtil.getInstance().logEvent("first_charge_dialog_earn_free_coin_click")
    }

    fun firstChargeDialogChargeClick() {
        UTUtil.getInstance().logEvent("first_charge_dialog_charge_click")
    }

    fun firstChargeDialogCloseClick() {
        UTUtil.getInstance().logEvent("first_charge_dialog_close_click")
    }

    fun chargeDialogShow() {
        UTUtil.getInstance().logEvent("charge_dialog_show")
    }

    fun chargeDialogCloseClick() {
        UTUtil.getInstance().logEvent("charge_dialog_close_click")
    }

    fun chargeDialogMoreClick() {
        UTUtil.getInstance().logEvent("charge_dialog_more_click")
    }

    fun chargeDialogProductClick(coin: String, productId: String) {
        val params = Bundle()
        params.putString("coin", coin)
        params.putString("product_id", productId)
        UTUtil.getInstance().logEvent("charge_dialog_product_click", params)
    }
}